using System;
using System.Collections.Generic;
using System.Diagnostics;

namespace Spike_EBC_Designer.ViewModel
{
    [Serializable]
    public abstract class ModelElement
    {
        public int X;
        public int Y;
        public int Width;
        public int Height;

        public virtual bool IntersectsWith(int x, int y)
        {
            return (this.X <= x && this.Y <= y && x <= (this.X + this.Width) && y <= (this.Y + this.Height));
        }
    }
}